package StudyCode.summary.mydatetime;

import java.time.ZonedDateTime;
import java.util.GregorianCalendar;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GregorianCalendarToZonedDateTime {
	public static void main(String[] args) {
		GregorianCalendar gc = new GregorianCalendar();
		System.out.println("GregorianCalendar: " + gc.getTime());
		ZonedDateTime zonedDateTime = gc.toZonedDateTime();
		System.out.println("GregorianCalendar 转为 ZonedDateTime: " + zonedDateTime);
	}
}
